package com.lk.service.Impl;

import com.lk.bean.Grade;
import com.lk.mapper.GradeMapper;
import com.lk.service.GradeService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;

@Service
public class GradeServiceImpl implements GradeService {

    @Resource
    private GradeMapper gradeMapper;

    @Override
    public Integer deleteGrade(Integer[] ids) {
        return gradeMapper.deleteGrade(ids);
    }

    @Override
    public Grade findByName(String name) {
        return gradeMapper.findByName(name);
    }

    @Override
    public int addGrade(Grade grade) {
        return gradeMapper.addGrade(grade);
    }

    @Override
    public int updateGrade(Grade grade) {
        return gradeMapper.updateGrade(grade);
    }

    @Override
    public List<Grade> getGradeList(Grade grade) {
        return gradeMapper.getGradeList(grade);
    }
}
